import request from '@/utils/request'

export function addRepetition(data) {
  return request({
    url: '/eduadmin/repetition',
    method: 'post',
    data: data
  })
}

// 查询学生详情列表
export function listStudentDetail() {
  return request({
    url: '/student/studentDetail/list',
    method: 'get',
  })
}

// 查询学生信息详细
export function getStudentMessage(id) {
  return request({
    url: '/student/studentMessage/' + id,
    method: 'get'
  })
}

// 查询教师管理列表
export function listTeacherManagement() {
  return request({
    url: '/teacher/teacherManagement/list',
    method: 'get',
  })
}

// 查询班级管理列表
export function listClass() {
  return request({
    url: '/student/class/list',
    method: 'get',
  })
}

// 查询关注列表列表
export function listAttention(query) {
  return request({
    url: '/eduadmin/attention/list',
    method: 'get',
    params: query
  })
}

// 查询关注列表详细
export function getAttention(id) {
  return request({
    url: '/eduadmin/attention/' + id,
    method: 'get'
  })
}

// 新增关注列表
export function addAttention(data) {
  return request({
    url: '/eduadmin/attention',
    method: 'post',
    data: data
  })
}

// 修改关注列表
export function updateAttention(data) {
  return request({
    url: '/eduadmin/attention',
    method: 'put',
    data: data
  })
}


// 删除关注列表
export function delAttention(id) {
  return request({
    url: '/eduadmin/attention/' + id,
    method: 'delete'
  })
}

// 查询跟踪列表详细
export function traceAttention(studentId) {
  return request({
    url: '/eduadmin/teacherTrace/trace/' + studentId,
    method: 'get'
  })
}


export function followAttention() {
  return request({
    url: '/eduadmin/attention/follow',
    method: 'get'
  })
}

// 根据班级id查询学生
export function getStudentByClassId() {
  return request({
    url: '/student/studentMessage/findStudentNameByClassId',
    method: 'get'
  })
}

